<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"></script>
</head>
<body>
    <div id="ooo">
        <p v-if="gender === 1">性别：♀ 男</p>
        <p v-else>性别：♂ 女</p>
        <hr>
        
    </div>
    <script>
        const ooo = new Vue({
            el:'#ooo',
            data:{
                gender:2,
                score:95
            }
        })
    </script>
</body>
</html>